
#include "enbt.h"
#include "process_cmd.h"
#include <stdio.h>
#include <readline/readline.h>
#include <stdlib.h>

//char* readline(char* prompt)
//free(char*)

int main(int argc, char **argv)
{
	char* lnin;
	struct enbt_state state;
	
	//init state
	state.want_exit = (char)0;
	state.is_changed = 0;
	state.fname = "";
	
	state.select = -1;
	state.depth_len = 0;
	//state->depth_list = (struct _tag**)0;
	
	while(state.want_exit == (char)0)
	{
		lnin = readline("enbt>");
		process_cmd(&state, lnin);
		free(lnin);
	}
	
	return 0;
}

